﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System.Linq;
using System.Text;
using KduneeShaders;

namespace ShaderApp
{
    class BumpExample : ShaderExample
    {
        override internal void LoadContent(ContentManager content)
        {
            Model model = content.Load<Model>(@"Content\Models\p1_wedge");

            Texture2D diffuse = content.Load<Texture2D>(@"Content\Textures\wedge_p1_diff_v1");
            Texture2D normal = content.Load<Texture2D>(@"Content\Textures\melitele_normal");

            BumpShader newBump = new BumpShader(content, diffuse);

            newBump.MaterialAmbient = new Microsoft.Xna.Framework.Vector4(1.0f, 1.0f, 1.0f, 1.0f);
            newBump.Normal = normal;
            newBump.ParallaxMapping = true;

            objects.Add(new ShaderedObject(newBump, model));
        }
    }
}
